package com.ruoyi.business.domain.dto.admin.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("管理员调整用户积分DTO")
public class AdjustUserPointsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "userId不能为空")
    private Long userId;

    @ApiModelProperty(value = "调整积分数量")
    @NotNull(message = "调整积分数量不能为空")
    private Integer points;

    @ApiModelProperty(value = "1:增加 2减少")
    @NotNull(message = "调整类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "调整原因")
    private String adjustReason;


}
